home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Electronic Clipper 1995 April
/
Electronic Clipper 1995-04.iso
/
pc
/
pc_users
/
ideasrc
/
setup
/
samples
/
libmain.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-24
|
1KB
|
51 lines
// ---------------------------------------------------------------------
//
// LIBMAIN.CPP - QuickTime for Windows Sample Decompressor
//
// Version 1.1
//
// (c) 1988-1993 Apple Computer, Inc. All Rights Reserved.
//
// ---------------------------------------------------------------------
// Windows header files
#include <windows.h>
#include <windowsx.h>
// Compiler header files
#include <string.h>
// Application header files
#include "prototyp.hp"
// Local data
static HINSTANCE hInstThisMod ;
/* function LibMain:
DLL Initialization
*/
int FAR PASCAL LibMain( HINSTANCE hInstance
, WORD wDataSeg
, WORD wHeapSize
, LPSTR lpszCmdLine
)
{
// perform common initialization
if ( wHeapSize > 0)
UnlockData( 0) ;
hInstThisMod = hInstance ; // save instance handle
// successful return
return 1 ;
} // LibMain
/* function GetInstOfThisMod:
Get the instance handle of this module
*/
HINSTANCE GetInstOfThisMod()
{
return hInstThisMod ;
} // GetInstOfThisMod